home *** CD-ROM | disk | FTP | other *** search
/ Monster Media 1996 #15 / Monster Media Number 15 (Monster Media)(July 1996).ISO / bbs_lord / life118d.zip / PROEDIT.TXT < prev    next >
Text File  |  1996-03-11  |  15KB  |  381 lines

  1. -------------------------------------------------------------------
  2.   HOW TO MESS AROUND WITH THE DATS and EVEN MAKE YOUR OWN
  3.       in 'LLML'  (Lord Life Markup Language)
  4. -------------------------------------------------------------------
  5.  
  6. **********************************
  7. NEW COMMANDS EXIST...
  8.  
  9. Newest commands available this version is:
  10.   
  11.   `<ReadTextFile>=[(TempStr0),(OtherDir),MYFILE.TXT,5]
  12.      this command looks in the directory: (OtherDir) <parameter 2>
  13.      and looks there for a file called:   MYFILE.TXT <parameter 3>
  14.      and looks in that file for line number:  5      <parameter 4>
  15.      and then places that line in the variable: (TempStr0) <parameter 1>
  16.      So (TempStr0) would now be equal to line number 5 of that file...
  17.   `<NewVar>=[(MyData-1),String]
  18.      Creates a NEW temporary var...be sure to DELETE it AFTER!
  19.   `<DelVar>=[(MyData-1)]
  20.      Deletes a temporary var...be sure to use this and
  21.      not <DELETE> ... one deletes a variable..the other a file!
  22.  
  23. ****
  24.   --==you can now create new temporary vars as well as file vars==--
  25.   --if you understand the below commands --
  26.   --use them with caution -- **delete all vars you create!** --
  27.   `<NewVar>=[(MyData-1),String]
  28.   `<DelVar>=[(MyData-1)]
  29. **** 
  30. ***********************************
  31.  
  32. ----
  33.  
  34.  
  35. SUGGESTION:  This file is currently very tiny...I would print it
  36.   if you plan to do anything much with .dat files.
  37. I WOULD RATHER YOU MAKE YOUR OWN DAT AND ADD IT TO THE 4thparty.dat
  38. than if you mess up my game dats too much....
  39. Cuz well alot of work went into them :)
  40. ...Take a look at testtxt.dat...
  41. ...And the var file that goes with it testtxt.var...
  42.  
  43.   If you have looked at any of the dats you will have seen that
  44. everything lordlife says or does can be changed...you can even have
  45. your own lord life modules.
  46.   I know it is kinda difficult to program these dats now...but
  47. soon it will be much easier.  Mess around with them in a text
  48. editer...and well make something I havn't thought of
  49.  
  50. NOW YOU CAN HAVE YOUR OWN VARIABLES!!! JUST TAKE A LOOK AT THE FILE
  51. TESTTXT.VAR ...WHEN YOU WRITE A MODULE THE MODULE NAME WITH A .VAR
  52. EXTENSION WILL BE THE VARIABLES
  53. -You can have as many vars as you like...but you must have a date
  54. var if you want some info ie flags .. to change next day
  55. --I am woking on better documentation..but I hate documenting things
  56. so its going to be awhile...Anybody want to help me write em?
  57. --LOOK AT TESTTXT.VAR AND TESTTXT.DAT FOR IDEAS--
  58. *Almost anything you could think of doing has been done in some
  59. form or another in the main life modules...just look at
  60. them for hints too.
  61. --------------------
  62. SUGGESTION::::::: START YOUR OWN GAME OFF FROM THE TESTTXT.DAT AND
  63. TESTTXT.VAR...COPY THEM SOMEPLACE TO A NEW NAME LIKE SAY UHH
  64. MYTXT.DAT AND MYTXT.VAR -must have same name-different extension.
  65. -Dont forget to add your dats name and title to the 4thparty.dat file!
  66. --------------------
  67. ***NOTE:  The best way to see how to make Lordlife do something is
  68.     to look and see how its done in the existing dats.
  69.  
  70. !!IF YOU WANT TO MAKE YOUR OWN MODULE...EDIT THE 4thparty.dat...
  71. and add two lines..the first the full filename of your dat
  72.   ie: c:\doors\myprog\myprog.dat
  73. and the second line is what the user will see:
  74.   ie: `1My `3Program
  75.  
  76.   -Soon I hope to create a program to install 4thparty.dats easily.
  77.   -Also I hope (though unlikely) to have the time to make an easy
  78.   editor for the dats, or a Word 6 .LLML Editor. sorta like HTML.
  79.  
  80. NOTE:  ALL COMMANDS LOOK LIKE:  `<CommandName>
  81.        OR:  `<CommandName>=[FIRST,SECOND,ETC]
  82.  
  83. NOTE:  ALL VARIABLES LOOK LIKE:  (VariableName)
  84.  
  85. -all lines without commands are printed unless they start with
  86. two forward slashes ie: //
  87. -all program dats start with a @#BEGIN
  88. -A dat file is run until another break point is reached or a
  89. command causes a break point:
  90.   Any line that starts with @# is a break point, as are some
  91. commands...most often `<if> commands will send the program
  92. to a different break point.
  93. ----------------------------------------------------------------------
  94. COMMAND LIST
  95. ----------------------------------------------------------------------
  96. //if you have two forward slashes to start a line...then that line
  97. //is ignored..ie for comments like this!
  98.  
  99.  
  100. `<SetMap>=[Themap,x,y,e,0]
  101.   
  102.   The above sets up a map...like a menu only it shows a map
  103. and the char 'e' in this case is the 'enemy' and it will move
  104. towards you...see the travtxt.dat for the best example or the
  105. mysttxt.dat or the maintxt.dat...These are very easy to use
  106. if you only look at the existing ones carefully .. the last
  107. parameter is always zero UNLESS you want a time limit in seconds
  108. and if you do it calls the break point TheMapOptions`
  109. So it uses the color char for time up...the color char would
  110. otherwise not be a possibility...
  111.  
  112.  
  113. `<SetVarFile>
  114.   Tells lordlife that your program has a .VAR file that it
  115. uses.
  116.  
  117. `<Quit>
  118.   Quit is the most important command...you MUST HAVE IT SOMEWHERE,
  119. where it is always accessable to the user so they can quit the
  120. program.
  121.  
  122.  
  123. `<ResetIfNewDay>   (Obsolete...no longer used...look at testtxt.dat)
  124.   This resets life's values..ie if user has had beer or not for that
  125. day...so that when its a new day the user can again do said option.
  126.  
  127.  
  128. `<MonstEd>=[1]
  129.   This is Just the monster edit sub program...you must tell it the
  130. level you want it to edit from, thats the first parameter...it can
  131. be a literal number like above or variable like (TempInt0) ...
  132.  
  133.  
  134. `<SetOptions>=[A,B,C,D]
  135.   This should be a command in every menu you have...to set the new
  136. options list...they are shown to the user...ALSO BE WARNED:  ALL YOUR
  137. MENU CHOICES MUST BE INCLUDED IN THIS LINE BECAUSE THE PROGRAM WILL
  138. ONLY EXECUTE COMMANDS IF THEIR ASSOCIATED LETTER IS SET WITH
  139. THIS.
  140.  
  141.  
  142. `<PrintVal>=[(TempStr0),(TheUser)]
  143.   This prints a value to the screen, in this case (TempStr0) ...
  144. (see variable section in the next section for list of values).
  145. And (TheUser) means the current user...it could also be some
  146. variable for another user you find with `<FindLifeUser>=[]
  147. I know this sounds confusiong...just look how its done...for
  148. example open TRISTXT.DAT and look at: @#TavernOptionsA
  149.  
  150.  
  151. `<FilePrint>=[(LordNick),(TheUser),(TLifesDir),LifePub.txt,%]
  152.   This outputs the value (in this case lords nick name)
  153. into the specified file and specified directory (in this case
  154. LIFEPUB.TXT in life's dir.  And the last parameter is the start
  155. color of the line.
  156.  
  157. `<ShowAnsi>=[(TLifesDir),mydata.ans]
  158.   This displays an ansi file...in this case: MYDATA.ANS in the
  159. Lifes Directory.
  160.  
  161. `<TrimFile>=[(TLifesDir),LifePub.txt,20]
  162.   This command trims a file down to so many lines..in this case
  163. I am trimming down the LIFEPUB.TXT file which is located in
  164. the Lifes Dir...down to 20 lines long.
  165.  
  166. `<ShowLordFile>=[LIFEPUB.TXT,(TLifesDir)]
  167.   This command displays a txt file...changing colors as lord would
  168. with is standard color scheme.  See the variable list later in this
  169. file for explanation of (TLifesDir) ...This is directory of life
  170.  
  171.  
  172. `<LordIn>=[(TempStr0),70,100,2,(TheUser)]
  173.   This command gets the user to enter a line of text, into
  174. In this case: (TempStr0) max length: 70 ...
  175. max total length including color change chars: 100 (this should never be more OR...
  176.                                                     bad things will happen)
  177.  
  178.  
  179. `<GetAns>=[(TempStr0),YN,(TheUser)]
  180.   This inputs one letter from keyboard...only accepts the letters listed
  181. as the second param...in this case YN ...the default is the first
  182. letter in the list so Y is the default here...for example open
  183. PUBTXT.DAT and search for @#PubOptionsT ...it asks user if
  184. they will pay...
  185.  
  186.  
  187. `<FindCommUser>=[(TempStr0),(TheUser)]
  188. `<FindLifeUser>=[(TempStr0),(TheUser)]
  189. `<FindLordUser>=[(TempStr0),(TheUser)]
  190.   These nifty commands take a partial user nickname...like
  191. if user inputs a partial search key..ie: wo
  192. then these funcs would find WOLF! if that nickname existed
  193. in that file...ie Comm (comment file)
  194.           Life (main lifeppl.dat file)
  195.           Lord (lord's player.dat file)
  196. AND IF IT FINDS THE NICKNAME IT RETURNS THE REAL USER NAME IN THE
  197. FIRST PARAM...so if WOLF!'s real name was John Doe it would return
  198. that....so that you could use that real name to find stats on
  199. this John Doe, wolf ... or change stats...see how its done
  200. in the dats like: in the MYSTTXT.DAT file the summon an ill
  201. wind can hurt another player see how its done...open the file and
  202. search for: @#MysticalOptionsS
  203.  
  204.  
  205. `<SetVal>=[(LordNick),(TheUser),Dweeb]
  206.   Put this line somewhere and all users would get their nicknames
  207. changed to dweeb hehehhehe!  See how it works...The value
  208. (LordNick) is set to Dweeb...for (TheUser).
  209.  
  210.  
  211. `<Random>=[(TempInt0),(TheUser),1,100]
  212.   This is a very usefull command...it generates a random number
  213. in this case between 1 and 100 and places it in (TempInt0)
  214.  
  215.  
  216. `<AddVal>=[(LGems),(TheUser),100]
  217.   Place this line in the dats some place and some user is going to
  218. get an awful lotta gems! :)  This adds to the value..the amount
  219. you specify, or concatinates a string on the end of a string value
  220.  
  221.  
  222. `<SubVal>=[(LordGold),(TheUser),10]
  223.   Same as add above..but it subtracts...
  224.  
  225.  
  226. `<MultVal>=[(LordGold),(TheUser),10]
  227.   Same as add above..but it multiplies...
  228.  
  229. `<DivVal>=[(LordGold),(TheUser),10]
  230.   Same as add above..but it divides...
  231.  
  232. `<if>=[(TempStr1),(TheUser),###NotFound###,@#UserNotFound]
  233.   This is an importand command...it checks if the value
  234. in this case (TempStr1) is equal to in this case: ###Not Found###
  235. and if so does something in this case jumps to the line
  236. starting with @#UserNotFound
  237.  
  238.  
  239. `<ifless>= --- These are the same as if except ifless checks if
  240. `<else>=     the value is less and else does the oposite of it.
  241.  
  242.  
  243. `<goto>=[@#NewLine]
  244.   This just jumps to a new point in the dat. 
  245.  
  246.  
  247. `<SetMenu>=[MainMenu]
  248.   Sets the menu to what you give it and also runs that menu.
  249.  
  250.  
  251. `<SetMenuAndFile>=[MainMenu,(TLifesDir),MAINTXT.DAT]
  252.   This also changes the dat file as well as the menu...if
  253. your making your own 4thparty.dat don't use this cuz then
  254. there would be files all over the place and it would be
  255. a mess! :)
  256.  
  257. `<More>
  258.   This simply waits for the users response to continue.
  259.  
  260.  
  261. `<Credits>
  262.   Shows Credits.
  263.  
  264.  
  265. `<Clear>
  266.   Clears screen.
  267.  
  268.  
  269. `<NewLine>
  270.   Forces a new line ... ie: carriage return...or enter ...whatever
  271.  
  272.  
  273. `<Space>
  274.   Forces a space to be printed when running with auto return off.
  275.  
  276.  
  277. `<RetOff>
  278.   Turns off auto return so a line ends with its last valid non
  279. space char...if you do not do a `<NewLine> then everything
  280. will go to the one line.
  281.  
  282.  
  283. `<RetOn>
  284.   Turns auto return on.
  285.  
  286.  
  287.  
  288. ----------------------------------------------------------------------
  289. VARIABLES
  290. ----------------------------------------------------------------------
  291. (TheUser)       The real name of the current user
  292. (TLifesDir)     Life's full directory path
  293. (TLordsDir)     Lord's full directory path
  294. (TheOptions)    The menu options
  295. (TempStr0)      **************************************************
  296. (TempStr1)      *  These strings are temporary                   *
  297. (TempStr2)      *and are not saved to file, use for temp vals    *
  298. (TempStr3)      **************************************************
  299. (TGotFairy)     Does user have a fairy 1=yes 0=no
  300. (TempInt0)      -Temporary ints...(thats small numbers)
  301. (TempInt1)      -''
  302. (TempInt2)      -''
  303. (TempInt3)      -''
  304. (TempDbl0)      ==Temporary doubles..for very large numbers.
  305. (TempDbl1)      ==
  306. (TempDbl2)      ==
  307. (TempDbl3)      ==
  308.  
  309.  
  310. (LordNick)          lord nickname...alias
  311. (LRealName)         real name
  312. (LordWeapon)        weapon name
  313. (LordArmour)        armour name
  314. (LordHP)            hit points
  315. (LordHPMax)         max hit points
  316. (LWeaponNum)        weapon number
  317. (LArmourNum)        armour number
  318. (LHumanFights)      human fights
  319. (LForestFights)     forest fights
  320. (LordGold)          lord gold
  321. (LordBank)          lord gold in bank
  322. (LDefence)          lord defence
  323. (LStrength)         lord strength
  324. (LCharm)            lord charm
  325. (Level)             lord level
  326. (LGems)             lord gems
  327. (LordExp)           lord experience
  328. (LKids)             number of lord kids
  329. (LTimesWon)         times won lord
  330. (Lays)              number of lays
  331. (LHaveHorse)        have horse if this is 1 else 0 if user doesn't have horse
  332. (LWeirdEvent)       if 5 then weird event will occur 0 if not
  333. (LSeenDragon)       if 5 then seen dragon 0 if not
  334. (LSeenViolet)       if 5 then seen voilet 0 if not
  335. (LSeenMaster)       if 5 then seen master 0 if not
  336. (LDead)             if 5 then player dead in lord 0 if not
  337. (LInn)              if 5 then player staying in inn 0 if not
  338. (LSex)              if 5 then female 0 if male
  339. (LBard)             if 5 then seen bard 0 if not
  340. (LClass)            class 1, 2, or 3  ie Death Knight,Mystical,Thievery
  341. (LevelW)            death knight skill left
  342. (LevelM)            mystical skill left
  343. (LevelT)            thievery skill left
  344. (LSkillW)           death knight skill level
  345. (LSkillM)           mystical skill level
  346. (LSkillT)           thievery skill level
  347.  
  348.  
  349. (FLifeExp)          life experience
  350. (FLifeStr)          life strength
  351. (FLifeDef)          life defence
  352. (FLifeGold)         life money on hand
  353. (LifeBank)          life money in bank
  354. (FLifeSkill)        life skill at jousting
  355. (HadDrink)          1 if had drink 0 if not
  356. (FTalked)           1 if talked to tris 0 if not
  357. (FHadBeer)          1 if had beer 0 if not
  358. (FWashroom)         1 if used washroom 0 if not
  359. (FHadSpec)          1 if had special dish 0 if not
  360. (FHadVegg)          1 if had vegg dish 0 if not
  361. (FDeedDone)         1 if done a herioc deed 0 if not
  362. (FJoust)            number of Jousts done today out of max 5
  363. (FVisLan)           1 if visited Lan 0 if not
  364. (FVisLisa)          1 if visited Lisa 0 if not
  365. (FSavedPr)          1 if saved princess 0 if not
  366. (FTrained)          1 if trained today 0 if not
  367. (FGambled)          1 if gambled today 0 if not
  368.  
  369.  
  370. (Comment)           comment user made bout self
  371. (CAge)              age user entered
  372. (CHair)             hair color number 1..12
  373. (CEyes)             eye color number 1..12
  374. (CRealSex)          real sex number
  375. (CLikeToMeet)       1 if like to meet other 0 if not
  376.  
  377.  
  378. ---------------------------------------------------------------------------
  379. uhh..Dibbbity..Dibity..DIbity...that's all for now folks!
  380. ---------------------------------------------------------------------------
  381.